<?php
/**
 * @var $form BootActiveForm
 */
?>
<div class="form">

    <?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
            'id'=>'serviceProce-form',
            'enableAjaxValidation'=>false,
            'type'=>'vertical',
            'method'=>'post',
)); ?>

    <fieldset>
        <legend>Ár</legend>

        <?php echo $form->errorSummary($model);
        ?>

        <div class="span7">
        <?php

            echo $form->label($model, 'price');
            ?>
            <div class="input-append">
        <?php
            echo $form->numberField($model, 'price', array('min'=>0));
           ?>
                <span class="add-on">HUF/m&sup2;</span>
            </div>
          <?php
            echo $form->error($model, 'price');

            echo $form->label($model, 'fromDate');
            echo $form->dateField($model, 'fromDate');
            echo $form->error($model, 'fromDate');

            echo $form->hiddenField($model, 'provider_id');
        ?>
        </div>

    </fieldset>

      <div class="form-actions">

            <?php $this->widget('bootstrap.widgets.BootButton', array(
                    'buttonType'=>'submit',
                    'type'=>'primary',
                    'icon'=>'ok white',
                    'label'=>'Mentés',
		    ));

            echo cancelButton(array('servicePrice/index', 'providerId'=>$provider->id, 'blockId'=>$block->id));

            ?>
     </div>

     <?php

        $this->endWidget();

     ?>

</div>
